import enum

class rcmap(enum.Enum):
    roll = 1
    pitch = 2
    throttle = 3
    yaw = 4

def init():
    global vehicle

    global pwm_step
    pwm_step = [0, 0, 0, 0, 0]
    global pwm_value
    pwm_value = [0, 0, 0, 0, 0]
    

    pwm_value[rcmap.roll.value] = 1500
    pwm_value[rcmap.pitch.value] = 1500
    pwm_value[rcmap.throttle.value] = 1150
    pwm_value[rcmap.yaw.value] = 1500

    pwm_step[rcmap.roll.value] = 10
    pwm_step[rcmap.pitch.value] = 10
    pwm_step[rcmap.throttle.value] = 10
    pwm_step[rcmap.yaw.value] = 10


